Getting Started
Setting up View
First, follow this tutorial on setting up the View library.
Using the renderer
// import the renderer
import view.core.renderers.MaterialDesignJsRenderer
// contains the renderer's dependency injection configuration
import view.di.Container
// contains the core library's DI configuration
import view.di.KodeinContainer
fun displayUI() {
// add the renderer's DI config to the library's DI config
// Note that this should be done before using the library
KodeinContainer.addConfig(Container.kodein, allowOverrides = true)
// render the layout
val layout = buildUI()
MaterialDesignJsRenderer.setRoot(layout)
}